﻿using System;
using Solution.Core.Snowflake;

namespace Solution.Application.Services.Imples
{
    public class SnowflakeId : ISnowflakeId
    {
        private readonly SnowFlake _snowflake;

        public SnowflakeId()
        {
            //You can replace it with the configuration file ID
            _snowflake = new SnowFlake(1, 1);
        }

        public long NextId()
        {
            return _snowflake.NextId();
        }
    }
}